home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / vgatx10s.zip / MAKEFILE < prev    next >
Text File  |  1997-04-12  |  2KB  |  95 lines

  1. #
  2. # VgaText Class
  3. # Copyright (c) 1995-1997 Branislav L. Slantchev
  4. # A Product of Silicon Creations, Inc.
  5. #
  6. # Makefile for building the VGA text mode effects library
  7. #
  8. # This is a Borland C++ 3.1 specific makefile.
  9. #
  10. # Command line options:
  11. #
  12. #    make              <- build the library
  13. #    make clean        <- remove all .obj and temp files
  14. #
  15.  
  16. #
  17. # Set up the compiler location (root) and support directories
  18. #
  19. PBLIB_DIR    = e:\sci\pbl
  20. COMPILER_DIR = e:\c\bc
  21. INCLUDE_DIR  = $(COMPILER_DIR)\h;$(PBLIB_DIR)\h
  22.  
  23. #
  24. # Set up some Borland make-specific features
  25. #
  26. .autodepend
  27. .swap
  28.  
  29. #
  30. # Set up the commands to run the utilities and support filenames
  31. #
  32. PCH    = vgatext.sym
  33. CC     = $(COMPILER_DIR)\bin\bcc +$(CONFIG)
  34. LIB    = $(COMPILER_DIR)\bin\tlib /0
  35. LIBDIR = $(PBLIB_DIR)\lib
  36. CONFIG = vgatext.cfg
  37. LIBRSP = vgatext.rsp
  38. TARGET = $(LIBDIR)\vgatext
  39.  
  40. #
  41. # List of all object files that go into the library
  42. #
  43. OBJS =    vgatext.obj
  44.  
  45. #
  46. # Implicit rule for compiling .C files
  47. #
  48. .cpp.obj:
  49.     $(CC) {$. }
  50.  
  51. #
  52. # This is where the library is actually made
  53. #
  54. $(TARGET): $(CONFIG) $(OBJS) $(LIBRSP)
  55.     @if exist $(TARGET).lib del $(TARGET).lib
  56.     $(LIB) $@ @$(LIBRSP),nul
  57.     @del $(LIBRSP)
  58.     @if exist $(TARGET).bak del $(TARGET).bak
  59.  
  60. #
  61. # Create the librarian response file
  62. #
  63. $(LIBRSP):
  64.     makersp "+%s &\n" &&|
  65. $(OBJS)
  66. | > $(LIBRSP)
  67.  
  68. #
  69. # Clean all temporary and intermediate files
  70. #
  71. clean:
  72.     if exist *.obj del *.obj
  73.     if exist *.sym del *.sym
  74.     if exist $(CONFIG) del $(CONFIG)
  75.  
  76. #
  77. # Create the compiler configuration file
  78. #
  79. $(CONFIG): makefile
  80.     copy &&|
  81. -3
  82. -f-
  83. -G
  84. -ml
  85. -O2
  86. -P
  87. -w
  88. -X
  89. -v-
  90. -c
  91. -I$(INCLUDE_DIR)
  92. -DNDEBUG=1
  93. | $(CONFIG)
  94.  
  95.